home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / programming / oracle7 7.2 / TOOLS / PLUS32 / PLUS32.VRF < prev    next >
Encoding:
Text File  |  1995-10-16  |  5.6 KB  |  126 lines

  1. /* Copyright (c) Oracle Corporation 1992.  All Rights Reserved */
  2. /*****************************************************************************
  3.   NAME
  4.     plus32.vrf - V3.0.20.2.0 version analysis/product configuration script
  5.          for Sql*Plus for Windows Nt/95 3.2
  6.  
  7.   DESCRIPTION
  8.     This script checks dependencies and environment settings for the
  9.     installation of Sql*Plus for Windows Nt/95 3.2
  10.  
  11.   OWNER
  12.     Edan Kabatchnik
  13.  
  14.   MODIFIED    DD-MMM-YY  Reason
  15.     Aedsinge  07/05/95 - Modified for v3.1 of the installer
  16.     Aedsinge  06/06/95 -  Modified for version 3.2.2, Windows NT/95.
  17.     Aedsinge  27-APR-95  Modified for Shared Oracle, Windows Sql*Plus 3.1.3.7.2
  18.     LMurphy   08-SEP-94  Modified for Windows SQL*Plus 3.1.3.5.x
  19.     LMurphy   23-MAY-94  Modified for Windows SQL*Plus 3.1.2.2.6
  20.     shall     04-FEB-93  Created from RSF 7 vrf file
  21. *****************************************************************************/
  22. /*****************************************************************************
  23.    Bind string variables & prompt strings...
  24. *****************************************************************************/
  25. {
  26.         /*******************************************************************/
  27.         /* Shared Oracle code */
  28.         SHARED_ORACLE_COMPLIANT = TRUE;
  29.         /* end Shared Oracle code */
  30.         /*******************************************************************/
  31.     { doit = execute("%installer_home%\win95.vrf"); }
  32.     [
  33.     'UNBOUND_VARIABLE:
  34.     {
  35.         required_version = product_version(ntinstver);
  36.         temp = explode(required_version,".");
  37.         required_version = implode(list(first(temp), first(rest(temp)),
  38.                       first(rest(rest(temp))),
  39.                       first(rest(rest(rest(temp))))),".");
  40.         signal('failure, instantiate(nls("instver_too_early1","The version of the Installer currently running is %%installer_version%%.  The installation you have chosen requires version %%required_version%% or later.  Please run version %%required_version%% or later in order to perform this installation.")));
  41.     }
  42.     ]
  43.  
  44.     if (doit)
  45.     {
  46.         vrf_ratchet = "3.2.2.0.1";
  47.  
  48.         {
  49.         set_plus32 = FALSE;
  50.  
  51.         plus32 = translate("PLUS32","$oracle");
  52.  
  53.         if (not(exists(plus32)))
  54.  
  55.             signal('UNBOUND_ENVIRONMENT_VARIABLE);
  56.         }
  57.         [ 'OS_ERROR, 'INVALID_FILE_NAME, 'FILE_NOT_FOUND,
  58.         'PERMISSION_DENIED, 'UNBOUND_ENVIRONMENT_VARIABLE:
  59.         {
  60.             plus32 = "%oracle_home%\PLUS32";
  61.             set_plus32 = TRUE;
  62.         }
  63.         ]
  64.  
  65.         { oracle_group_name = oracle_group_name; }
  66.                 [ 'UNBOUND_VARIABLE: oracle_group_name = nls("oracle_group_name","Oracle for Windows 95"); ]
  67.  
  68.         {
  69.             set_sqlpath = FALSE;
  70.             sqlpath = translate("SQLPATH","$oracle");
  71.             if (not(exists(sqlpath)))
  72.                 signal('UNBOUND_ENVIRONMENT_VARIABLE);
  73.         }
  74.             [ 'OS_ERROR, 'INVALID_FILE_NAME, 'FILE_NOT_FOUND,
  75.             'PERMISSION_DENIED, 'UNBOUND_ENVIRONMENT_VARIABLE:
  76.             {
  77.             sqlpath = "%ORACLE_HOME%\DBS";
  78.             set_sqlpath = true;
  79.             }
  80.             ]
  81.  
  82.         installing_scripts = nls("installing_scripts", "Installing %%product_label%% Installation Scripts...");
  83.         installing_exec = nls("installing_exec", "Installing %%product_label%% Executable...");
  84.         installing_msbs = nls("installing_msbs", "Installing %%product_label%% Message Files...");
  85.         installing_sql = nls("installing_sql", "Installing %%product_label%% SQL Scripts...");
  86.         registering = nls("registering", "Registering %%product_label%%...");
  87.         prod_label = nls("prod_label", "Modifying %%product_label%% Environment Variables...");
  88.         installing_help = nls("installing_help", "Installing %%product_label%% Help Files...");
  89.                 plus32_expl = nls("plus32_expl", "%%product_label%% (PLUS32.EXE) is currently running on this machine. Please close this application before installing %%product_label%%.
  90.  
  91. Silent mode installation of %%product_label%% terminated.");
  92.                 plus32_run = instantiate(nls("plus32_run", "%%product_label%% (PLUS32.EXE) is currently running on this machine. Please close this application before installing %%product_label%%.
  93.  
  94. Choose OK after you have closed all Oracle applications and want to resume the installation of %%product_label%%.
  95.  
  96. Choose CANCEL to terminate the installation of %%product_label%%."));
  97.                 plus32_inst_term = instantiate(nls("plus32_inst_term", "%%product_label%% installation terminated."));
  98.                 plus32_run_content = instantiate(nls("plus32_run_content", "%%product_label%% Running"));
  99.                 plus32_run_help = instantiate(nls("plus32_run_help", "The Oracle Installer has detected that %%product_label%% (PLUS32.EXE) is currently running on this machine.  Please close this application before installing %%product_label%%.
  100.  
  101. Choose OK after you have closed all Oracle applications and want to resume the installation of %%product_label%%.
  102.  
  103. Choose CANCEL to terminate the installation of %%product_label%%."));
  104.  
  105.                 done = FALSE;
  106.                 while(not(done))
  107.                 { move_file("%ORACLE_HOME%\bin\plus32.exe", "%ORACLE_HOME%\bin\plus32.exe"); done = TRUE; }
  108.                 [ 'PERMISSION_DENIED, 'INVALID_FILE_NAME, 'OS_ERROR, 'WRITE_ERROR:
  109.                 {
  110.                         if (silent_mode)
  111.                                 signal('FAILURE, instantiate(plus32_expl));
  112.                         else
  113.                                 information_dialog(instantiate(plus32_run), plus32_run_content, instantiate(plus32_run_help));
  114.                 }
  115.                   'FILE_NOT_FOUND:
  116.                         done = TRUE;
  117.                 ]                       
  118.         return(sum(msg,nls_abbreviation,sql,deinstl,exe,help) + verify(w95rsf72));
  119.     
  120.     }
  121.     else
  122.         refresh_map_file = FALSE;
  123.     return(0);
  124. }
  125.  
  126.